﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="Fitment.User.register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../style/user.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style10
        {
            height: 34px;
        }
        .style11
        {
            width: 119px;
        }
        .style12
        {
            height: 34px;
            width: 119px;
        }
        .style13
        {
            color: #FF0000;
        }
        .style14
        {
            width: 165px;
        }
        .style15
        {
            height: 34px;
            width: 165px;
        }
        #form1
        {
            height: 0px;
        }
        .style16
        {
            width: 119px;
            height: 59px;
        }
        .style17
        {
            width: 165px;
            height: 59px;
        }
        .style18
        {
            height: 59px;
        }
        .style19
        {
            font-family: "Times New Roman", Times, serif;
            font-size: x-large;
        }
    </style>
</head>
<body background="../images/regisbg.jpg" style="background-repeat: no-repeat; background-attachment: fixed; background-position:center" >
    <form id="form1" runat="server">
    <div id="register">
   <table border="0" cellpadding="1" cellspacing="1" style="height: 471px; width: 94%">
   <tr>
    <td class="style16"><div align="center" class="style19"><strong>用户注册</strong></div></td>
    <td class="style17"><div align="center" 
            style="background-color: #9900FF; height: 22px; width: 191px;">请输入注册信息</div></td>
    <td class="style18"><div align="center" 
            style="background-color: #9900FF; height: 22px;">
        带<span class="style13">*</span>为必填选项</div></td>
  </tr>
  <tr>
    <td class="style11"><div align="right">用户名:</div></td>
    <td class="style14"><div align="left">&nbsp;<span class="style13">*</span><asp:TextBox 
            ID="tb_acc" runat="server"></asp:TextBox>
        </div></td>
    <td><div align="left">请输入字母、数字或汉字组成的用户名<br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="tb_acc" ErrorMessage="用户名不能为空"></asp:RequiredFieldValidator>
&nbsp;&nbsp;
        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
            ControlToValidate="tb_acc" ErrorMessage="请输入正确格式的用户名" 
            ValidationExpression="^(?!_)(?!.*?_$)[a-zA-Z0-9\u4e00-\u9fa5]+$"></asp:RegularExpressionValidator>
        </div></td>
  </tr>
  <tr>
    <td class="style11"><div align="right">密码:</div></td>
    <td class="style14"><div align="left">&nbsp;<span class="style13">*</span><asp:TextBox 
            ID="tb_pwd" runat="server" TextMode="Password"></asp:TextBox>
        </div></td>
    <td><div align="left">请输入6~12位由字母、数字组成的密码<br />
        <asp:RequiredFieldValidator 
            ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_pwd" 
            ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
&nbsp;&nbsp;&nbsp;
        <asp:RegularExpressionValidator 
            ID="RegularExpressionValidator1" runat="server" 
            ErrorMessage="请输入正确格式的密码" ControlToValidate="tb_pwd" 
            ValidationExpression="^[0-9a-zA-Z]\w{5,11}$"></asp:RegularExpressionValidator>
        <br />
        </div></td>
  </tr>
    <tr>
    <td class="style11"><div align="right">重新输入密码:</div></td>
    <td class="style14"><div align="left">&nbsp;<span class="style13">*</span><asp:TextBox 
            ID="tb_pwd2" runat="server" TextMode="Password"></asp:TextBox>
        </div></td>
    <td><div align="left">
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="tb_pwd2" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
&nbsp;&nbsp;&nbsp;
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="tb_pwd" ErrorMessage="两次密码不一致" 
            ControlToValidate="tb_pwd2"></asp:CompareValidator>
        <br />
        </div></td>
  </tr>
  <tr>
    <td class="style11"><div align="right">姓名:</div></td>
    <td class="style14"><div align="left">&nbsp;<span class="style13">*</span><asp:TextBox 
            ID="tb_name" runat="server"></asp:TextBox>
        </div></td>
    <td><div align="left">
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="tb_name" ErrorMessage="姓名不能为空"></asp:RequiredFieldValidator>
&nbsp;&nbsp;&nbsp;
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
            ErrorMessage="请输入真实姓名" ValidationExpression="^[\u4e00-\u9fa5]{2,}$" 
            ControlToValidate="tb_name"></asp:RegularExpressionValidator>
        </div></td>
  </tr>
  <tr>
    <td class="style11"><div align="right">性别:</div></td>
    <td class="style14"><div align="left">&nbsp;<span class="style13">*</span><asp:DropDownList 
            ID="dd_sex" runat="server" Height="22px" Width="85px">
        <asp:ListItem>男</asp:ListItem>
        <asp:ListItem>女</asp:ListItem>
        </asp:DropDownList>
        </div></td>
    <td><div align="left"></div></td>
  </tr>
  <tr>
    <td class="style11"><div align="right">年龄:</div></td>
    <td class="style14"><div align="left">&nbsp;&nbsp;&nbsp;<asp:DropDownList 
            ID="dd_age" runat="server" Height="22px" Width="85px">
            <asp:ListItem>请选择</asp:ListItem>
            <asp:ListItem>15</asp:ListItem>
            <asp:ListItem>16</asp:ListItem>
            <asp:ListItem>17</asp:ListItem>
            <asp:ListItem>18</asp:ListItem>
            <asp:ListItem>19</asp:ListItem>
            <asp:ListItem>20</asp:ListItem>
            <asp:ListItem>21</asp:ListItem>
            <asp:ListItem>22</asp:ListItem>
            <asp:ListItem>23</asp:ListItem>
            <asp:ListItem>24</asp:ListItem>
            <asp:ListItem>25</asp:ListItem>
            <asp:ListItem>26</asp:ListItem>
            <asp:ListItem>27</asp:ListItem>
            <asp:ListItem>28</asp:ListItem>
            <asp:ListItem>29</asp:ListItem>
            <asp:ListItem>30</asp:ListItem>
            <asp:ListItem>31</asp:ListItem>
            <asp:ListItem>32</asp:ListItem>
            <asp:ListItem>33</asp:ListItem>
            <asp:ListItem>34</asp:ListItem>
            <asp:ListItem>35</asp:ListItem>
            <asp:ListItem>36</asp:ListItem>
            <asp:ListItem>37</asp:ListItem>
            <asp:ListItem>38</asp:ListItem>
            <asp:ListItem>39</asp:ListItem>
            <asp:ListItem>40</asp:ListItem>
            <asp:ListItem>41</asp:ListItem>
            <asp:ListItem>42</asp:ListItem>
            <asp:ListItem>43</asp:ListItem>
            <asp:ListItem>44</asp:ListItem>
            <asp:ListItem>45</asp:ListItem>
            <asp:ListItem>46</asp:ListItem>
            <asp:ListItem>47</asp:ListItem>
            <asp:ListItem>48</asp:ListItem>
            <asp:ListItem>49</asp:ListItem>
            <asp:ListItem>50</asp:ListItem>
            <asp:ListItem>51</asp:ListItem>
            <asp:ListItem>52</asp:ListItem>
            <asp:ListItem>53</asp:ListItem>
            <asp:ListItem>54</asp:ListItem>
            <asp:ListItem>55</asp:ListItem>
            <asp:ListItem>56</asp:ListItem>
            <asp:ListItem>57</asp:ListItem>
            <asp:ListItem>58</asp:ListItem>
            <asp:ListItem>59</asp:ListItem>
            <asp:ListItem>60</asp:ListItem>
        </asp:DropDownList>
        </div></td>
    <td><div align="left"></div></td>
  </tr>
   <tr>
    <td class="style12"><div align="right">电话:</div></td>
    <td class="style15"><div align="left">&nbsp;&nbsp;&nbsp;<asp:TextBox ID="tb_tel" runat="server"></asp:TextBox>
        </div></td>
    <td class="style10"><div align="left">
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ControlToValidate="tb_tel" ErrorMessage="请输入正确格式的电话" 
            ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8,11}"></asp:RegularExpressionValidator>
        </div></td>
  </tr>
  <tr>
    <td class="style11"><div align="right">电子邮箱:</div></td>
    <td class="style14"><div align="left">&nbsp;<span class="style13">*</span><asp:TextBox 
            ID="tb_email" runat="server"></asp:TextBox>
        </div></td>
    <td><div align="left">
        请填写正确的邮箱地址，注册完毕会发送注册信息至该邮箱，方便以后找回密码。<br />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
            ErrorMessage="请输入正确格式的电子邮箱，方便找回密码" 
            ValidationExpression="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" 
            ControlToValidate="tb_email"></asp:RegularExpressionValidator>
        </div></td>
  </tr>
   <tr>
    <td class="style11"><div align="right">地址:</div></td>
    <td class="style14"><div align="left">&nbsp;&nbsp;&nbsp;<asp:TextBox ID="tb_add" 
            runat="server" TextMode="MultiLine" Height="43px"></asp:TextBox>
        </div></td>
    <td><div align="left"></div></td>
  </tr>
  <tr>
    <td colspan="3"><div align="left">
    <br/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/registe.png" 
            onclick="ImageButton1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/logon.aspx">&lt;&lt;返回登录</asp:HyperLink>
        </div></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
